<?php
class CMS_Models_Contact extends Zend_Db_Table_Abstract
{
   protected $_name = "comment";	
	
   public function __construct( )
   {
   	 parent::__construct(array('table' =>$this->_name));
   }
   
   public function getAll()
   {
   	/*Ver Fetch All */
   	$contact = $this->fetchAll(array(),"date desc" );
   	return $contact;
   }
    
    public  function getContactById($id)
    {
    	$contact = $this->fetchAll("id = $id");
    	return $contact[0];
    }
   
}